.class public Lcom/xingbook/b/k;
.super Lcom/xingbook/b/n;


# instance fields
.field public a:I

.field public b:Ljava/lang/String;

.field public c:Z

.field private d:Z

.field private e:Ljava/lang/ref/WeakReference;

.field private f:Ljava/lang/String;


# direct methods
.method public constructor <init>(I)V
    .locals 3

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Lcom/xingbook/b/n;-><init>(I)V

    const/4 v0, 0x3

    iput v0, p0, Lcom/xingbook/b/k;->a:I

    iput-boolean v1, p0, Lcom/xingbook/b/k;->c:Z

    iput-boolean v1, p0, Lcom/xingbook/b/k;->d:Z

    iput-object v2, p0, Lcom/xingbook/b/k;->e:Ljava/lang/ref/WeakReference;

    iput-object v2, p0, Lcom/xingbook/b/k;->f:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/b/k;)Ljava/lang/ref/WeakReference;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/b/k;->e:Ljava/lang/ref/WeakReference;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/b/k;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/b/k;->d:Z

    return-void
.end method


# virtual methods
.method public a(I)Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://z.xingbook.com/i/"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "xb/yl/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/b/k;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ".jpg"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Z)Ljava/lang/String;
    .locals 2

    iget-object v0, p0, Lcom/xingbook/b/k;->f:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/b/k;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/b/k;->f:Ljava/lang/String;

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0, p1}, Lcom/xingbook/b/k;->d(Z)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public a(Lcom/xingbook/b/m;)V
    .locals 1

    if-nez p1, :cond_0

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/b/k;->e:Ljava/lang/ref/WeakReference;

    :goto_0
    return-void

    :cond_0
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/b/k;->e:Ljava/lang/ref/WeakReference;

    goto :goto_0
.end method

.method public declared-synchronized a()Z
    .locals 3

    const/4 v0, 0x1

    monitor-enter p0

    :try_start_0
    iget-boolean v1, p0, Lcom/xingbook/b/k;->d:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v1, :cond_0

    const/4 v0, 0x0

    :goto_0
    monitor-exit p0

    return v0

    :cond_0
    const/4 v1, 0x1

    :try_start_1
    iput-boolean v1, p0, Lcom/xingbook/b/k;->d:Z

    sget-object v1, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v2, Lcom/xingbook/b/l;

    invoke-direct {v2, p0}, Lcom/xingbook/b/l;-><init>(Lcom/xingbook/b/k;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public d()Lcom/xingbook/service/download/g;
    .locals 5

    const/4 v0, 0x0

    invoke-virtual {p0}, Lcom/xingbook/b/k;->s()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/b/k;->t()Ljava/lang/String;

    move-result-object v2

    const/16 v3, 0x40

    if-ne v1, v3, :cond_1

    new-instance v0, Lcom/xingbook/service/download/g;

    iget-object v1, p0, Lcom/xingbook/b/k;->b:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/xingbook/b/k;->ah()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x4

    invoke-direct {v0, v2, v1, v3, v4}, Lcom/xingbook/service/download/g;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    const/16 v3, 0x50

    if-ne v1, v3, :cond_0

    new-instance v0, Lcom/xingbook/service/download/g;

    iget-object v1, p0, Lcom/xingbook/b/k;->b:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/xingbook/b/k;->ah()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x3

    invoke-direct {v0, v2, v1, v3, v4}, Lcom/xingbook/service/download/g;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_0
.end method

.method public e(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/b/k;->f:Ljava/lang/String;

    return-void
.end method

.method public f(Ljava/lang/String;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/xingbook/b/n;->f(Ljava/lang/String;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/b/k;->c:Z

    return-void
.end method

.method public h(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public i(Ljava/lang/String;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/xingbook/b/n;->w(Ljava/lang/String;)V

    return-void
.end method
